let obj = {
  name: 'smith',
  age: 56
}
let arr = [12, 14, 46];
for (const key in obj) {
  console.log(key + '------' + obj[key]);
}
for (const index in arr) {
  console.log(index + '------' + arr[index]);
}
for (const item of arr) {
  console.log(item)
}
for (const item of obj) {
  console.log(item);
}